<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div class="mian">
		<a href="javascript:" id='aid'>返回上一页</a>
		<br>
		<a href="javascript:" id='aid2'>返回上两页</a>
	</div>
</body>
<script>
	aidobj=document.getElementById('aid');
	aidobj2=document.getElementById('aid2');
	aidobj.onclick=function(){
		//history.back();
		history.go(-1);//返回上一页
	
	}
	
	aidobj2.onclick=function(){

		history.go(-2);//返回上两页
	}
</script>
</html>